package com.hznc.wcs.excel.model;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.lang.Double;
import java.math.BigDecimal;
import java.util.List;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.diboot.core.util.D;
import com.diboot.core.util.V;
import com.diboot.file.excel.BaseExcelModel;
import com.diboot.file.excel.annotation.ExcelBindDict;
import com.diboot.file.excel.annotation.ExcelBindField;
import com.diboot.file.excel.annotation.ExcelOption;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import jakarta.validation.constraints.NotNull;
import com.hznc.wcs.entity.modbusconfig.ModbusSignalPosition;

/**
* Modbus信号点位 导入model定义
*
* @author MyName
* @version 1.0
* @date 2024-11-29
 * Copyright © MyCorp
*/
@Getter
@Setter
@ExcelIgnoreUnannotated
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 1)
public class ModbusSignalPositionImportModel extends BaseExcelModel {
    /**
    * salve配置编码
    */
    @Length(max=100, message="salve配置编码长度应小于100")
    @ExcelProperty(value = "salve配置编码")
    private String salveConfigCode;
    /**
    * salve配置Id
    */
    @Length(max=100, message="salve配置Id长度应小于100")
    @ExcelProperty(value = "salve配置Id")
    private String salveConfigId;
    /**
    * salveId
    */
    @ExcelProperty(value = "salveId")
    private Long salveId;
    /**
    * 名称
    */
    @Length(max=100, message="名称长度应小于100")
    @ExcelProperty(value = "名称")
    private String name;
    /**
    * 数据类型
    */
    @Length(max=100, message="数据类型长度应小于100")
    @ExcelProperty(value = "数据类型")
    private String dataType;
    /**
    * 偏移量
    */
    @Length(max=100, message="偏移量长度应小于100")
    @ExcelProperty(value = "偏移量")
    private String offset;
    /**
    * 备注
    */
    @Length(max=100, message="备注长度应小于100")
    @ExcelProperty(value = "备注")
    private String remark;
    /**
    * 功能码
    */
    @ExcelOption(dict = "modbusFun")
    @ExcelBindDict(type = "modbusFun")
    @ExcelProperty(value = "功能码")
    private String fun;
    /**
    * 读写
    */
    @ExcelOption(dict = "rw")
    @ExcelBindDict(type = "rw")
    @ExcelProperty(value = "读写")
    private String readWriteAccess;

}